/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.models;

import com.ntb.entities.Buildings;
import java.util.Iterator;

/**
 *
 * @author DATBP
 */
public interface BuildingsDAO {

    public Iterator getCountList(int year);

    public int countAll();

    public Iterator<Buildings> getList();

    public Iterator<Buildings> getList(String buildingId, String buildingName, String landId, int buildingTypeId,
            int floorFrom, int floorTo, int roomFrom, int roomTo,
            String constructedDateFrom, String constructedDateTo, String status, int page);

    public int getPageCount(String buildingId, String buildingName, String landId, int buildingTypeId,
            int floorFrom, int floorTo, int roomFrom, int roomTo,
            String constructedDateFrom, String constructedDateTo, String status);

    public Buildings getRow(int id);

    public boolean checkExist(int buildingId);

    public boolean checkDuplicateName(String name);

    public int add(Buildings object);

    public int update(Buildings object);

    public int updateStatus(int buildingID, String statusCode);

    public int updateOccupancyPermitID(int buildingID, int occupancyPermitID);

    public int delete(int id);

    public int deleteIn(String arrayIds);
}
